package Web2.Reginstservice;

import Web2.Reginstdao.Reginstdao2;

public class Reginstservice2 {
    public Integer chek(String username) {
        //调用dao进行查询判断用户是否存在
        Reginstdao2 rd=new Reginstdao2();
        Integer count = rd.chek(username);
return count;
    }

    public Integer regist(String username, String password) {
        Reginstdao2 rd=new Reginstdao2();
        Integer regist = rd.Regist(username, password);
        return regist;
    }
    //用户注册业务

}
